{include file="header.html"}

<div class="page-header">
	<h6>
		系统设置
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			系统日志
		</small>
		<div>
			<a href="?app=setting&act=gm_log">管理员日志</a>
		</div>
	</h6>
</div>

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="setting" />
<input type="hidden" name="act" id="act" value="log" />
<input type="text" class="input-medium" placeholder="会员" name="member_name" value="{$member_name}" /> 
<input type="text" class="input-medium" placeholder="app" name="log_app" value="{$log_app}" /> 
<input type="text" class="input-medium" placeholder="act" name="log_act" value="{$log_act}" /> 	
<input type="text" class="input-medium" placeholder="ip" name="ip" value="{$ip}" /> 
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<div class="table-content">
<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>会员</th>
			<th>文件</th>
			<th>参数</th>
			<th>app</th>
			<th>act</th>
			<th>用户浏览器</th>
			<th>IP</th>
			<th>时间</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row name=row}
		<tr>
			<td>{$row.id}</td>
			<td>
				{if $row.member_id}
				<a href="?app=member&act=edit&id={$row.member_id}">{$row.member_name}</a>
				{else}
				-
				{/if}
			</td>
			<td>{$row.script_name}</td>
			<td>{$row.query_string}</td>
			<td>{$row.app}</td>
			<td>{$row.act}</td>
			<td>{$row.user_agent}</td>
			<td>{$row.ip}</td>
			<td>{$row.add_time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
</div>
<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}

